<?php

use Faker\Generator as Faker;

$factory->define(App\Model\Spot::class, function (Faker $faker) {
    $sentence = $faker->sentence();
    $price = $faker->numberBetween(60,400);
    // 随机取一个月以内的时间
    $time = $faker->dateTimeThisMonth();

    return [
        'name' => $sentence,
        'price' => $price,
        'trip' => $sentence,
        'set_meal' => $sentence,
        'details' => $sentence,
        'explain' => $faker->imageUrl($width = 640, $height = 480),
        'score' => $faker->numberBetween(1,5),
        'created_at' => $time,
        'updated_at' => $time,
    ];
});
